﻿
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace Demo.Models
{
    /// <summary>
    /// Class MicroSite.
    /// </summary>
    [Description("展会信息")]
    public class MicroSite : BaseEntity<long>
    {

        /// <summary>
        /// Initializes a new instance of the <see cref="MicroSite"/> class.
        /// </summary>
        public MicroSite()
        { 
            Organizer = new Organizer();
            UiTemplate = new UiTemplate();
            MicroSiteConfigs = new List<MicroSiteConfig>();
            Articles = new List<Article>();
            MicroSiteMenues = new List<MicroSiteMenue>();
            StartTime = EndTime = DateTime.Now;
            Home = "~/Mobile/Mhome/index/";//微站的路径相对固定、因为Entity层未做dto映射，故此在此处将值写死。dto的map工具不支持4.0
            LogoUrl = "#";
        }

        /// <summary>
        /// 组织Id
        /// </summary>
        /// <value>The organizer_ identifier.</value>
        public long Organizer_Id { get; set; }


        /// <summary>
        /// Gets or sets the template_ identifier.
        /// </summary>
        /// <value>The template_ identifier.</value>
        public long UiTemplate_Id { get; set; }

        /// <summary>
        /// 名字
        /// </summary>
        /// <value>The name.</value>
        public string Name { get; set; }

        /// <summary>
        /// 主页
        /// </summary>
        /// <value>The home.</value>
        public string Home { get; set; } 


        /// <summary>
        /// 展会标题英文
        /// </summary>
        /// <value>The name_ en.</value>
        public string Name_En { get; set; }

        /// <summary>
        /// 展会缩写
        /// </summary>
        /// <value>The name abbr.</value>
        public string NameAbbr { get; set; }

        /// <summary>
        /// 展会logo
        /// </summary>
        /// <value>The logo URL.</value>
        public string LogoUrl { get; set; }

        /// <summary>
        /// 举办展会展商logo
        /// </summary>
        public string CompanyLogo { get; set; }

        /// <summary>
        /// 举办展会展商logo2
        /// </summary>
        public string CompanyHeadLogo { get; set; }


        /// <summary>
        /// 宣传图片
        /// </summary>
        /// <value>The disseminate pic URL.</value>
        public string DisseminatePicUrl { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        /// <value>The start time.</value>
        public DateTime StartTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        /// <value>The end time.</value>
        public DateTime EndTime { get; set; }

        /// <summary>
        /// 简介
        /// </summary>
        /// <value>The description.</value>
        public string Description { get; set; }


        /// <summary>
        /// 展会地址
        /// </summary>
        /// <value>The address.</value>
        public string Address { get; set; }

        /// <summary>
        /// 简介-英文
        /// </summary>
        /// <value>The description_ en.</value>
        public string Description_En { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        /// <value>The content.</value>
        public string Content { get; set; }

        /// <summary>
        /// 内容-英文
        /// </summary>
        /// <value>The content_ en.</value>
        public string Content_En { get; set; }

        /// <summary>
        /// 预览二维码
        /// </summary>
        /// <value>The pre view qr code.</value>
        public string PreViewQrCode { get; set; }


        /// <summary>
        /// 展会code
        /// </summary>
        /// <value>The code.</value>
        public string Code { get; set; }


        /// <summary>
        /// 展会code配置的状态
        /// </summary>
        /// <value>The code status.</value>
        public string CodeStatus { get; set; }

        /// <summary>
        /// 展商code
        /// </summary>
        /// <value>The code1.</value>
        public string ExhibitionCode { get; set; }

        /// <summary>
        /// 展商注册链接
        /// </summary>
        /// <value>The exhibition register URL.</value>
        public string ExhibitionRegisterUrl { get; set; }

        /// <summary>
        /// 参展者code
        /// </summary>
        /// <value>The code2.</value>
        public string VisitorCode { get; set; }

        /// <summary>
        /// 参展者注册链接
        /// </summary>
        /// <value>The visitor register URL.</value>
        public string VisitorRegisterUrl { get; set; }

        /// <summary>
        /// 展会的类型
        /// </summary>
        /// <value>The type.</value>
        public int Type { get; set; }

        /// <summary>
        /// Gets or sets the micro site configs.
        /// </summary>
        /// <value>The micro site configs.</value>
        public virtual ICollection<MicroSiteConfig> MicroSiteConfigs { get; set; }
        /// <summary>
        /// Gets or sets the organizer.
        /// </summary>
        /// <value>The organizer.</value>
        public virtual Organizer Organizer { get; set; }

        /// <summary>
        /// Gets or sets the micro site menues.
        /// </summary>
        /// <value>The micro site menues.</value>
        public virtual ICollection<MicroSiteMenue> MicroSiteMenues { get; set; }

        /// <summary>
        /// Gets or sets the articles.
        /// </summary>
        /// <value>The articles.</value>
        public virtual ICollection<Article> Articles { get; set; }

        /// <summary>
        /// Gets or sets the UI template.
        /// </summary>
        /// <value>The UI template.</value>
        public virtual UiTemplate UiTemplate { get; set; } 

    }
}
